// let arr = [
//   'pages/index/index',
//   'pages/issueNotice/index',
//   'pages/chooseObject/index',
//   'pages/chooseDevices/index',
//   'pages/noticeDetail/index'
// ]


let pages:string[] = []

let subPackages_pages = [
  'issueNotice/index',
  'chooseObject/index',
  'chooseDevices/index',
  'noticeDetail/index',
  'selectUser/index',
  'searchPageComp/index',
]

if(process.env.TARO_ENV === 'weapp'){
  pages.unshift('pages/wxLogin/login')
  subPackages_pages.unshift('index/index')
}else if(process.env.TARO_ENV === 'h5'){
  pages.unshift('pages/noticeApp/index/index')
}

export default {
  pages: pages,
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: 'WeChat',
    navigationBarTextStyle: 'white'
  },
  subPackages:[
    {
      "root":"pages/noticeApp/",
      "pages":subPackages_pages
    }
  ]
}
